# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-notifyd
pkgver=0.9.3
pkgrel=0
pkgdesc="Notification daemon for the xfce desktop"
url="https://docs.xfce.org/apps/notifyd/"
arch="all"
license="GPL-2.0-or-later"
depends="hicolor-icon-theme"
makedepends="
	dbus-glib-dev
	gtk+3.0-dev
	libnotify-dev
	libsexy-dev
	libxfce4ui-dev
	libxfce4util
	sqlite-dev
	xfce4-panel-dev
	xfce4-dev-tools
	xfconf-dev
	"
subpackages="$pkgname-lang $pkgname-doc"
source="https://archive.xfce.org/src/apps/xfce4-notifyd/${pkgver%.*}/xfce4-notifyd-$pkgver.tar.bz2"
# tests are somewhat interactive and build manual programs
options="!check"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install

	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="
df6b3cdc0fa8d349f7c3f9e7d920aa1b3f7a729c2a123d982e5312af227d34bd9803c3643eaa0af02aa1ccd870251614a32934e994236d953a610dd6aef61500  xfce4-notifyd-0.9.3.tar.bz2
"
